;(function ($) {
  $(function () {
    $('#J_Member').removeClass('dn');
      var vm = new Vue({
        el: '#J_Member',
        data: function() {
          return {
            list: []
          }
        },
        created: function() {
          var shop_id = $.getQueryString('shop_id')
          var _this = this;
          $.mAjax({
            url: '/shop/get-manager-list',
            data: {shop_id: shop_id},
            success: function (res) {
              if (res.status == 1) {
                _this.list = res.data
              } else {
                if (res.error.errorno == '401') {
                  layer.open({
                    content: '登录过期，请重新登录！',
                    skin: 'msg',
                    time: 2 //2秒后自动关闭
                  })
                  setTimeout(function () {
                    localStorage.removeItem('_u_info_')
                    location.href = './index.html'
                  }, 2000)
                }
              }
            }
          })
        }
      })
    })
})(jQuery)
